<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Used to get the current value of a statement attribute</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli-stmt.affected-rows.html">mysqli_stmt::$affected_rows</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli-stmt.attr-set.html">mysqli_stmt::attr_set</a></div>
 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli-stmt.attr-get" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli_stmt::attr_get</h1>
  <h1 class="refname">mysqli_stmt_attr_get</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt::attr_get</span> -- <span class="refname">mysqli_stmt_attr_get</span> &mdash; <span class="dc-title">Used to get the current value of a statement attribute</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli-stmt.attr-get-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>mysqli_stmt::attr_get</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$attr</code></span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>mysqli_stmt_attr_get</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli-stmt.html" class="type mysqli_stmt">mysqli_stmt</a></span> <code class="parameter">$stmt</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$attr</code></span>
   )</div>

  <p class="para rdfs-comment">
   Gets the current value of a statement attribute.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli-stmt.attr-get-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<em><code class="parameter">
stmt</code></em></dt>
<dd>
<p class="para">仅以过程化样式：由
<span class="function"><a href="mysqli.stmt-init.html" class="function">mysqli_stmt_init()</a></span> 返回的 statement 标识。</p></dd>

    
     <dt>
<em><code class="parameter">attr</code></em></dt>

     <dd>

      <p class="para">
       The attribute that you want to get.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli-stmt.attr-get-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>FALSE</code></strong> if the attribute is not found, otherwise returns the value of the attribute.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli-stmt.affected-rows.html">mysqli_stmt::$affected_rows</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli-stmt.attr-set.html">mysqli_stmt::attr_set</a></div>
 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
